package com.zw.yzk.kabu.data.network.entity;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanwei on 2017/3/9.
 */

public class ExhibitionTicketEntity extends Entity {

    @Expose
    @SerializedName("result")
    public Result result;

    public ExhibitionTicketEntity() {
        this.result = new Result();
        result.ticketList = new ArrayList<>();
    }

    public class Result {
        @Expose
        @SerializedName("exhibition_order_list")
        public List<Ticket> ticketList;
        @Expose
        @SerializedName("total_rows")
        public int total;
    }

    public class Ticket {
        @Expose
        @SerializedName("id")
        public String id; // 订单号
        @Expose
        @SerializedName("exhibition_name")
        public String exhibitionName;// 展会名称
        @Expose
        @SerializedName("exhibition_cover_image_url")
        public String coverImage; // 封面图片地址
        @Expose
        @SerializedName("price")
        public float price; // 价格
        @Expose
        @SerializedName("number")
        public int count; // 数量
        @Expose
        @SerializedName("total_price")
        public float totalPrice; // 总价
        @Expose
        @SerializedName("create_time")
        public String date; // 订单生成时间
        @Expose
        @SerializedName("check_ticket_time")
        public String checkTicketTime;
        @Expose
        @SerializedName("ticket_type")
        public String ticketType;
        @Expose
        @SerializedName("phone_number")
        public String phone;
        @Expose
        @SerializedName("serial_number")
        public String serialNumber;
        @Expose
        @SerializedName("user_id")
        public int userId;
        @Expose
        @SerializedName("exhibition_endtime")
        public String endTime;
        @Expose
        @SerializedName("exhibition_starttime")
        public String startTime;
        @Expose
        @SerializedName("exhibition_address")
        public String address;
        @Expose
        @SerializedName("order_state")
        public int orderState;
        @Expose
        @SerializedName("check_code")
        public String checkCode;
        @Expose
        @SerializedName("qr_code_url")
        public String qrCodeUrl;
        @Expose
        @SerializedName("is_expired")
        public int isExpired;// 0-未结束 1-已结束
    }
}
